#SYSTEMC = /users/cosic/jfan/systemc2.2
SYSTEMC = /users/micas/systemc/systemc-2.2.0
TARGET_ARCH = linux
CC     = /freeware/gcc/linux-i386/bin/g++
EXTRAFLAGS  =  -DSC_INCLUDE_FX -DSC_INCLUDE_SYS -DSC_FX_EXCLUDE_OTHER
INCDIR = -I. -I.. -I$(SYSTEMC)/include
LIBDIR = -L. -L.. -L$(SYSTEMC)/lib-$(TARGET_ARCH)


LIBS   = -lsystemc -lm

jpeg: main.o scan.o b1.o rgbyuv.o b2.o dct.o b5.o b3.o quant.o b4.o huf.o fdump.o bshow.o
	g++ $(INCDIR) $(LIBDIR) main.o scan.o b1.o rgbyuv.o b2.o dct.o b5.o b3.o quant.o b4.o huf.o fdump.o bshow.o ${LIBS} -o jpeg

%.o: %.cxx
	g++ -g $(EXTRAFLAGS) $(INCDIR) -c $< -o $@

clean:
	rm -f *.o *~ jpeg
